$(function(){
    var idAmostra = $('#idAmostra').val();
    var inicial = $('#inicial').val();
    
    
	jQuery("#gridConsultaLiberacaoRotina").jqGrid({
		url:"extranet/Consulta/liberacaorotina/idAmostra/"+idAmostra+'/inicial/'+inicial,
		datatype: "json",
		colNames:['Rotina', 'Data Liberação','Usuário Cadastro', 'Usuário Atualização'], 
		colModel:[
	   		{name:'idRotina',index:'idRotina', width:80,align:"center", search: false},
	   		{name:'dataLiberacao',index:'dataLiberacao', width:110, align:"center", search: false, formatter:'date', datefmt:'d/m/Y'},
	   		{name:'usuBio', index:'usuBio', width:110, align:"center",search: false},
	   		{name:'usuAux', index:'usuAux', width:110, align:"center", search: false}
                ],
   		//rowNum:20,
   		//rowList:[10,20,30],
   		//shrinkToFit: false, 
   		scroll:true,
                heigth: '300%',
   		width: 1000,
   		pager: '#navConsultaLiberacaoRotina',
   		sortname: 'dataLiberacao',
   		sortorder: "ASC",
   		multiselect: false,
   		viewrecords: true,
   		loadonce:true,
   		ignoreCase:true,
   		caption:"Amostra: "+idAmostra,
   		grouping:false,
		
		//footerrow: true,
		userdataOnFooter: true
	});
});
jQuery("#gridConsultaLiberacaoRotina").jqGrid('navGrid','#gridConsultaLiberacaoRotina',{add:false,edit:false,del:false});
